﻿using BlazorApp.Model;
using BootstrapBlazor.Components;
using Model.Dtos;
using SqlSugar.IOC;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace WebApp.Service
{
    public class UserService : IUserService
    {
        public User Query(string name)
        {
            return DbScoped.SugarScope.Queryable<User>()
                .Where(it => it.Name == name).Single();
        }
    }
}
